#ifndef __UL_GLOBAL_H__
#define __UL_GLOBAL_H__

#include "VSDL_gamengine.h"
#include "VSDL_text.h"
#include "ULGfx_Balls.h"
#include "ULGfx_Serial.h"
#include "ULGfx_History.h"
#include "ULGfx_Statistic.h"
#include "ULGfx_BallStatistic.h"

#ifdef __LINUX__
#define FONT_FILE	"./fonts/ukai.ttf"
#else
#define FONT_FILE	".\\fonts\\ukai.ttf"
#endif
#define FONT_SIZE	16

#define DEFAULT_RANDOM_SEED		(0x19850612)

namespace UL_Global{
	int UnionLottoInit(bool updateHistoryData, const char *fontFileName, int fontSize, const char *binHistoryFile, unsigned int random_seed = DEFAULT_RANDOM_SEED);
	void UnionLottoRun();
	void UnionLottoEnd();
	VSDL_Font *UnionLottoFont();
	ULG_Ball *UnionLottoRedBall();
	ULG_Ball *UnionLottoBlueBall();
	ULG_Balls *UnionLottoBalls();
	ULG_Serial *UnionLottoSerial();
	ULG_Statistic *UnionLottoStatistic();
	ULG_BallStatistic *UnionLottoBallStatistic(bool red);
	ULC_Statistic *UnionLottoTotalStatistic();
	void UnionLottoShowTitle();	
	void UnionLottoShowBg();
	void UnionLottoShowPrizeTable(VSDL_Point point);
	void UnionLottoSetTipColor(VSDL_RGB rgb);
	void UnionLottoShowTip(const char *tip, VSDL_Point point);
	int UnionLottoGetFontHeight();
	void UnionLottoUpdateScreen();
	void UnionLottoPredictFullyRandom(ULC_Serial &serila);
	void UnionLottoPredictByAC(ULC_Serial &serial);
};

#endif /*__UL_GLOBAL_H__*/
